home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20021006-20030409
/
000239_tom.horsley@att.net_Fri Jan 24 11:24:50 EST 2003.msg
< prev
next >
Wrap
Text File
|
2003-04-08
|
2KB
|
55 lines
Article: 14031 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!phl-feed.news.verio.net!iad-feed.news.verio.net!iad-peer.news.verio.net!news.verio.net!newsfeed.vmunix.org!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn11feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!not-for-mail
Sender: tom@SPIKE
Newsgroups: comp.protocols.kermit.misc
Subject: Is this an infinite loop bug in find?
From: tom.horsley@att.net (Thomas A. Horsley)
Message-ID: <u7kcv5m5r.fsf@att.net>
Lines: 35
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
NNTP-Posting-Host: 87e748873747d365de554df3fb03da5e
X-Complaints-To: abuse@worldnet.att.net
X-Trace: bgtnsc05-news.ops.worldnet.att.net 1043374480 87e748873747d365de554df3fb03da5e (Fri, 24 Jan 2003 02:14:40 GMT)
NNTP-Posting-Date: Fri, 24 Jan 2003 02:14:40 GMT
Organization: AT&T Worldnet
Date: Fri, 24 Jan 2003 02:14:40 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14031
Details: Kermit 95 Version 2.1.3
Windows XP Professional
I'm trying to implement my conditional ssh-add stuff, and starting small
with a single special case before I try to fancy it up and generalize it.
Here is a kermit script which works fine when I "take" it:
ssh agent list /fingerprint
save command scrollback \v(tmpdir)keyfing.txt
find /nolist 37:d3:8a:ed:a1:4c:cf:a9:bc:58:7b:a4:4f:51:bd:5d \v(tmpdir)keyfing.txt
if failure {
ssh agent add \v(appdata)SSH/id_dsa
}
Here's the same script changed to stash the fingerprint in a macro:
define myfinger 37:d3:8a:ed:a1:4c:cf:a9:bc:58:7b:a4:4f:51:bd:5d
ssh agent list /fingerprint
save command scrollback \v(tmpdir)keyfing.txt
find /nolist \m(myfinger) \v(tmpdir)keyfing.txt
if failure {
ssh agent add \v(appdata)SSH/id_dsa
}
When I run this version, it seems to get down to the find command and sit
there using infinite amounts of CPU time.
Actually, if I just manually define a similar macro and use it as the
pattern in a find command, it seems to do the same thing, so the "take" and
the surrounding script is probably unimportant.
--
>>==>> The *Best* political site <URL:http://www.vote-smart.org/> >>==+
email: Tom.Horsley@worldnet.att.net icbm: Delray Beach, FL |
<URL:http://home.att.net/~Tom.Horsley> Free Software and Politics <<==+